<link href="${rc.getContextPath()}/static/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="userCode">用户：</label> <input type="text" name="account" value="${condition.account!''}" /></li>
                <li><label>用户类型：</label> <select name="type">
                        <option value="">所有</option> <#list userType?keys as key>
                        <option value="${key}"<#if condition.type?? && condition.type == key> selected="selected"</#if>>${userType["${key}"]}</option> </#list>
                </select></li>
                <li><label>是否可用：</label> <select name="enable">
                        <option value="">所有</option>
                        <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>>否</option>
                        <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>>是</option>
                </select></li>
            </ul>
            <ul class="searchContent" style="height: 30px;">
                <li><label>性别：</label> <select name="sex">
                    <option value="">所有</option>
                    <option value="男"<#if condition.systemFlag?? && condition.sex == "男"> selected="selected"</#if>>男</option>
                    <option value="女"<#if condition.systemFlag?? && condition.sex == "女"> selected="selected"</#if>>女</option>
                </select>
                </li>
                <li><label id="userText">关键字：</label> <input type="text" name="keyWords" value="${condition.keyWords!''}" /></li>
                <li></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">查询</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" target="dialog" mask="true" width="650" height="580" href="${rc.getContextPath()}/user/add?navTabId=${navTabId!''}" rel="addUser" title="新增用户"><span>新增</span> </a>
            </li>
            <li><a class="edit" target="dialog" mask="true" width="650" height="580" href="${rc.getContextPath()}/user/update?id={userId}&navTabId=${navTabId!''}" rel="modifyUser" title="编辑用户"><span>编辑</span> </a>
            </li>
            <li><a class="icon" target="dialog" mask="true" width="650" height="580" href="${rc.getContextPath()}/user/view?id={userId}&navTabId=${navTabId!''}" rel="viewUser" title="用户详情"><span>详情</span> </a>
            </li>
            <li><a class="delete" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/user/delete?navTabId=${navTabId!''}" title="确认要删除勾选的用户数据吗？"><span>删除</span> </a>
            </li>
            <li><a class="resetpassword" target="selectedTodo" postType="string" rel="ids" href="${rc.getContextPath()}/user/resetPassword?navTabId=${navTabId!''}" title="确认要重置勾选用户的密码吗？"><span>重置密码</span> </a>
            </li>

        </ul>
    </div>
    <table class="table" width="100%" layoutH="167">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100">身份证</th>
                <th width="100">用户名称</th>
                <th width="100">用户类型</th>
                <th width="100">性别</th>
                <th width="50">学校</th>
                <th width="60">qq</th>
                <th width="60">微信</th>
                <th width="60">操作人</th>
                <th width="120">创建时间</th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as user>
            <tr target="userId" rel="${user.id!''}">
                <td><input name="ids" value="${user.id!''}" type="checkbox">
                </td>
                <td>${user.card!''}</td>
                <td>${user.userName!''}</td>
                <td><#list userType?keys as key>
                    <#if user.type == key>${userType["${key}"]}</#if></#list>
                </td>
                <td>${user.sex}</td>
                <td>${user.school}</td>
                <td>${user.qq}</td>
                <td>${user.weixin}</td>
                <td>${user.operator!''}</td>
                <td>${user.createAt?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
            <tr target="user_id">
                <td colspan="6" class="noData">======列表无数据=====</td>
            </tr>
            </#if> <#else>
            <tr target="user_id">
                <td colspan="6" class="noData">======列表无数据=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>